package com.xupt.dangjian.service;

import com.xupt.dangjian.entity.Article;
import com.xupt.dangjian.entity.File;
import com.xupt.dangjian.model.PageModel;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

public interface  ArticleService {
  public void addArticle(Article article) throws Exception;

  public List<File> addFiles(MultipartFile[] multipartFiles) throws Exception;

  public PageModel getArticles(PageModel pageModel,String articleClass) throws Exception;

  public Article getArticle(Integer articleId) throws  Exception;

  public void deleteArticles(List<Integer> articleIdList) throws Exception;

  public void updateArticle(Article article) throws Exception;

  public PageModel getLatestArticles(PageModel pageModel) throws Exception;

  public PageModel fuzzySearch(PageModel pageModel,String key) throws Exception;

  public File getFileById(Integer id) throws Exception;
}
